package com.hp.team.bookstore.model.order;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "SALES_ORDER_ITEM")
public class SalesOrderItem extends OrderItem {

	@Column(name = "ORDER_ITEM_STATUS")
	private OrderItemStatus status;

	@ManyToOne
	@JoinColumn(name = "ORDER_ID")
	private SalesOrder order;

	@ManyToOne
	@JoinColumn(name = "INVENTORY_ITEM_INFO")
	private InventoryItemInfo inventoryItemInfo;

	public OrderItemStatus getStatus() {
		return status;
	}

	public void setStatus(OrderItemStatus status) {
		this.status = status;
	}

	public SalesOrder getOrder() {
		return order;
	}

	public void setOrder(SalesOrder order) {
		this.order = order;
	}

	public InventoryItemInfo getInventoryItemInfo() {
		return inventoryItemInfo;
	}

	public void setInventoryItemInfo(InventoryItemInfo inventoryItemInfo) {
		this.inventoryItemInfo = inventoryItemInfo;
	}
}
